<?php
require_once 'EasyDB.php';
require_once 'tpcache.php';
// 获取数据库连接
function getDbConn(){
	$db = new EasyDB();
	return $db;
}
//设置跨越
function setCosHeader(){
	header("Access-Control-Allow-Origin: *"); // 允许任意域名发起的跨域请求  
	header('Access-Control-Allow-Headers: X-Requested-With,X_Requested_With');  
}
function getCache(){
	$cache = new Cache();
	return $cache;
}
